package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by kong on 2018/3/27.
 */
@RestController
public class TestController {

    @GetMapping("hello")
    @ResponseBody
    public String sayHello(){
        System.out.println("Hello World");
        return "HelloWorld!!!";
    }
}
